package com.haibei.view;

import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

import com.haibei.R;
import com.haibei.activity.BaseHaibeiActivity;
import com.haibei.activity.MainActivity;

public abstract class SubTabView {


	protected MainActivity mActivity;
	protected View mContentView;

	public SubTabView(MainActivity activity) {
		this.mActivity = activity;
		initView();
	}

	public abstract void initView();

	public View getView() {
		return mContentView;
	}

	public abstract void onShow();

	public MainActivity getActivity() {
		return mActivity;
	}

	public View getHeaderView() {
		return findViewById(R.id.relativeLayoutHeader);
	}

	public View createView(int viewId) {
		return View.inflate(getActivity(), viewId, null);
	}

	public View findViewById(int viewId) {
		return this.mContentView.findViewById(viewId);
	}

	public void onActivityResult(int requestCode, int resultCode, Intent data) {

	}
}
